function save() {

    // var now = new Date();

    // var year = now.getFullYear(); //得到年份
    // var month = now.getMonth() + 1;//得到月份
    // var date = now.getDate();//得到日期
    // var hour = now.getHours();//得到小时数
    // var minute = now.getMinutes();//得到分钟数
    // var second = now.getSeconds();//得到秒数
    // var asw = year +"-"+month+"-"+date+" "+hour +":"+minute+":"+second ;
    // alert(asw);


    var title = $(".title").val();
    var conetxt = $(".conetxt").val();
    // var createDate = "";
    var u_id = $("#u_id").val();
    var state = 1;

     if (title == "") {
        layer.msg('必须填写标题', {
            time: 2000, //自动关闭
            btn:''
        })
        return ;

    } else if (conetxt == "") {
        layer.msg("内容不能为空!", {
            time: 2000, //自动关闭
            btn: ''
        })
        return;
    }

    let json = {
        title: title,
        conetxt: conetxt,
        // createDates: createDate,
        u_id: u_id,
        state: state
    };

    console.log(json);
    $.ajaxSettings.async = false;
    $.post("/si/save", json, function (data) {
        console.log(data)
        if (data == true) {
            layer.msg("添加成功", {
                time: 2000, //自动关闭
                btn: ''
            })
        } else {
            alert("添加失败")
        }
    });
    $.ajaxSettings.async = true;
}
function save1() {
    location.href="/si/zym-index";
}